<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
	<title>登录</title>
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</head>
<body style="overflow-x: hidden;margin: 0">
	<div style="position: fixed;height: 40px;background-color:#5CACEE;width: 100%;line-height: 40px;text-align: center;color: #fff;">欢迎进入聊天室</div>
	<div onclick="clicklogin()" style="width: 9em;height: 9em;background-color: #5CACEE;top:35%;position: fixed;bottom: 0;left: 22%;right: 0;border-radius: 10px;border:1px solid #5CACEE;box-shadow: 2px 2px 2px 2px #CCCCCC;color: #fff;line-height: 9em;text-align: center;font-size: 20px;font-weight: 500">
		登陆
	</div>
	<script type="text/javascript">
		var id = Math.ceil(Math.random()*10000);
		console.log(id);
		function clicklogin(){
			var name = prompt('请输入自己喜爱的昵称','');
			if(name == null || name == '') return false;
			console.log(name);
			location.href="/single?id="+id+"&name="+name;
		}
		
	</script>
</body>
</html>